package com.aaa.controller;

import com.aaa.service.ITabMenuService;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 于永利
 * @since 2024-08-03
 */
@RestController
@RequestMapping("/tab-menu")
public class TabMenuController {

    @Autowired
    private ITabMenuService tabMenuService;
    /*
    * 查询所有的一级菜单
    * */
    @GetMapping
    public Result queryAll(){

        return Result.success(tabMenuService.findMenus());
    }

}
